package com.google.guava.eventbus.listeners;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.google.common.eventbus.Subscribe;

/**
 * @author fuc
 * @create 2020-10-05
 */
public class AbstractListener {
  private static final Log log = LogFactory.get();

  @Subscribe
  public void commonTask(String event) {
    if (log.isInfoEnabled()) {
      log.info(
          "The event [{}]  will be handle by {}.{}",
          event,
          this.getClass().getSimpleName(),
          "commonTask");
    }
  }
}
